package com.wwe.kotlinstudy.dm.five;

/**
 * 静态内部类式
 */
public class StaticInnerClassJava {

    private static class SingletonHolder {
        private static StaticInnerClassJava instance = new StaticInnerClassJava();
    }

    private StaticInnerClassJava() {
        System.out.println("Singleton has loaded");
    }

    public static StaticInnerClassJava getInstance() {
        return SingletonHolder.instance;
    }


}
